<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="staffDetail.title"/></title>
    <meta name="heading" content="<fmt:message key='staffDetail.heading'/>"/>
    <meta name="menu" content="YADataMenu"/>
</head>
<s:form id="staffForm" action="saveStaff" method="post" validate="true">
    <li style="display: none">
        <s:hidden key="staff.id"/>
    </li>
    <s:textfield key="staff.staffId" required="true" cssClass="text medium"/>
    <s:textfield key="staff.name" required="true" cssClass="text medium"/>
    <s:select key="staff.dept" list="deptGroup" listKey="description" listValue="description" cssClass="select"/>
  	<s:textfield key="staff.team" cssClass="text medium"/>
  	<li>
        <fieldset>
            <legend><fmt:message key="staff.staffSettings"/></legend>
  	<s:checkbox key="staff.leader" id="staff.leader" fieldValue="true" theme="simple"/>
  	 <label for="staff.leader" class="choice"><fmt:message key="staff.leader"/></label>
  	<s:checkbox key="staff.manager" id="staff.manager" fieldValue="true" theme="simple"/>
  	 <label for="staff.manager" class="choice"><fmt:message key="staff.manager"/></label>
  	<s:checkbox key="staff.status" id="staff.status" fieldValue="true" theme="simple"/>
  	 	 <label for="staff.status" class="choice"><fmt:message key="staff.status"/></label>
  		</fieldset>
  	</li>
	<s:textfield key="staff.remark" required="false" cssClass="text medium"/>
    <li class="buttonBar bottom">
        <s:submit cssClass="button" method="save" key="button.save" theme="simple"/>
        <s:submit cssClass="button" method="cancel" key="button.cancel" theme="simple"/>
    </li>
</s:form>

<script type="text/javascript">
    Form.focusFirstElement($("staffForm"));
</script>
